﻿using System;

namespace XuanFe.AppLaunch.ETerm
{
    public class ETermTicket
    {
        /// <summary>
        /// 旅客序号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 航空公司
        /// </summary>
        public string Airline { get; set; }
        /// <summary>
        /// 出发城市编码
        /// </summary>
        public string DepartureCity { get; set; }
        /// <summary>
        /// 到达城市编码
        /// </summary>
        public string ArrivalCity { get; set; }
        /// <summary>
        /// 航班号
        /// </summary>
        public string FlightNo { get; set; }
        /// <summary>
        /// 舱位
        /// </summary>
        public string Berth { get; set; }
        /// <summary>
        /// 出发时间，yyyy-MM-dd HH:mm
        /// </summary>
        public DateTime DepartureTime { get; set; }
        /// <summary>
        /// 票号
        /// </summary>
        public string TicketNo { get; set; }
        /// <summary>
        /// 航段序号
        /// </summary>
        public string FlightNumber { get; set; }
        public override string ToString()
        {
            return string.Format("航空公司={0}，出发城市={1}，到达城市={2}，航班号={3}，舱位={4}，出发时间={5}，票号={6}，航段序号={7}，旅客序号={8}", this.Airline, this.DepartureCity, this.ArrivalCity, this.FlightNo, this.Berth, this.DepartureTime.ToString("yyyy-MM-dd"), this.TicketNo, this.FlightNumber, this.Id);
        }
    }
}
